package com.hunter2.standard.entity;

import java.util.Date;

public class CvSkill {
	private Integer id;

	private Date createTime;

	private Date updateTime;

	private Integer candidateid;

	private Integer processStage;

	private String skillName;

	private String info;

	private Float score;

	private String skillInfo;

	private Integer flag;

	private Integer skillExperience;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getCandidateid() {
		return candidateid;
	}

	public void setCandidateid(Integer candidateid) {
		this.candidateid = candidateid;
	}

	public Integer getProcessStage() {
		return processStage;
	}

	public void setProcessStage(Integer processStage) {
		this.processStage = processStage;
	}

	public String getSkillName() {
		return skillName;
	}

	public void setSkillName(String skillName) {
		this.skillName = skillName == null ? null : skillName.trim();
	}

	public String getInfo() {
		return info;
	}

	public void setInfo(String info) {
		this.info = info == null ? null : info.trim();
	}

	public Float getScore() {
		return score;
	}

	public void setScore(Float score) {
		this.score = score;
	}

	public String getSkillInfo() {
		return skillInfo;
	}

	public void setSkillInfo(String skillInfo) {
		this.skillInfo = skillInfo == null ? null : skillInfo.trim();
	}

	public Integer getFlag() {
		return flag;
	}

	public void setFlag(Integer flag) {
		this.flag = flag;
	}

	public Integer getSkillExperience() {
		return skillExperience;
	}

	public void setSkillExperience(Integer skillExperience) {
		this.skillExperience = skillExperience;
	}

	public String write2Line(CvSkill skill) {
		// 插入 11
		String line = "\\N" + "\t" + "\\N" + "\t" + "\\N" + "\t" + skill.getCandidateid() + "\t" + "\\N" // 5
				+ "\t" + skill.getSkillName() + "\t" + skill.getInfo() + "\t" + "\\N" + "\t" + skill.getSkillInfo()
				+ "\t" + "1" + "\t" // 5
				+ skill.getSkillExperience() + "\t"; // 1

		return line;
	}

	@Override
	public String toString() {
		return "CvSkill [id=" + id + ", createTime=" + createTime + ", updateTime=" + updateTime + ", candidateid="
				+ candidateid + ", processStage=" + processStage + ", skillName=" + skillName + ", info=" + info
				+ ", score=" + score + ", skillInfo=" + skillInfo + ", flag=" + flag + ", skillExperience="
				+ skillExperience + "]";
	}

}